from user.models import User

username = 'jhc'
raw_pwd = '123456'
user = User(username=username)
user.set_password(raw_pwd)
user.save()
